<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWechatKfMediasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_kf_medias', function (Blueprint $table) {
            $table->increments('id');
            $table->string('typeid')->default('')->comment('类型');
            $table->text('content')->nullable()->comment('内容');
            $table->string('title')->nullable()->comment('标题');
            $table->text('description')->nullable()->comment('描述');
            $table->string('url')->nullable()->comment('链接');
            $table->integer('pic_id')->default('0')->nullable()->comment('图片');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_kf_medias');
    }
}
